//
//  loslib-ios.m
//  lua-mobile
//
//  Created by zhaobin on 2018/10/17.
//  Copyright @ 2018 zhaobin. All rights reserved.
//

#import <Foundation/Foundation.h>


unsigned char IsSystemVersionAtLeast10() {
    if ([NSProcessInfo instancesRespondToSelector:@selector(isOperatingSystemAtLeastVersion:)]) {
        NSOperatingSystemVersion version = (NSOperatingSystemVersion){10, 0, 0};
        if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version]) {
            return 1;
        }
    }
    return 0;
}
